package com.sh.test.inner;


import com.springframework.annotation.YcComponent;
import com.springframework.annotation.YcResource;

@YcComponent
public class B {

    @YcResource(value = "a")
    private  A a;


    public B(A a) {
        this.a = a;
    }

    public B() {
    }

    public A getA() {
        System.out.println("我是B  我来获取我的属性A" + a);
        return a;
    }
}